import { createApp } from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'

import "./styles/index.scss"

import 'lib-flexible/flexible' //设置html根字体大小
// import "./utils/rem"

import vant from "./plugin/vant"



const app = createApp(App) // 创建实例

// 全局过滤器
app.config.globalProperties.$filters = {
    prefix(url: string) {
        if (url && url.startsWith('http')) {
            return url
        } else {
            url = `http://backend-api-01.newbee.ltd${url}`
            return url
        }
    }
}


app.use(router)
app.use(vant)
app.use(store)

app.mount('#app')
